package com.kitty.game.task.service.taskHandler;

import com.kitty.game.role.model.Role;
import org.springframework.stereotype.Component;

/**需要倒计时的任务继承此类*/
@Component
public abstract class TimeTaskHandler extends TaskHandler{

    public abstract void handleHeartBeat(Role role, long prevHeartTime);

    @Override
    public void handleLogin(Role role) {
        super.handleLogin(role);
        handleHeartBeat(role, 0);
    }
}
